package com.kuaidi.zhangke.kuaidi;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


/**
 * 5
 */
public class FiveActivity extends AppCompatActivity {


    @BindView(R.id.five_btn_big)
    Button fiveBtnBig;
    @BindView(R.id.five_btn_mid)
    Button fiveBtnMid;
    @BindView(R.id.five_btn_sm)
    Button fiveBtnSm;
    @BindView(R.id.five_btn_cancle)
    Button fiveBtnCancle;

    String code=null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_five);
        ButterKnife.bind(this);
        code = getIntent().getStringExtra("code");

    }


    @OnClick({R.id.five_btn_big, R.id.five_btn_mid, R.id.five_btn_sm, R.id.five_btn_cancle})
    public void onViewClicked(View view) {
        Intent intent=new Intent(FiveActivity.this,SixActivity.class);
        intent.putExtra("code",code);
        switch (view.getId()) {
            case R.id.five_btn_big:
                intent.putExtra("tag","big");
                break;
            case R.id.five_btn_mid:
                intent.putExtra("tag","mid");
                break;
            case R.id.five_btn_sm:
                intent.putExtra("tag","sm");
                break;
            case R.id.five_btn_cancle:
                break;
        }
        startActivity(intent);
    }
}
